

////  #include "sys_msg_process.h"


#ifndef sys_msg_process_h
#define sys_msg_process_h

#include "plcgw_cfg.h"

typedef struct {
	int msg_type;
	unsigned int dat_len;
	unsigned char msg_dat[MAX_MSG_SIZE-8];
}sys_main_msg_t;


enum {
	//MSG_EXEC_BIND = 1,
	//MSG_UPDATE_WHITELIST,
	//MSG_NODE_ONLINE_NOTIFY,
	//MSG_AUTO_ADD_WHITELIST,
	//MSG_FLUSH_LAMP1_STATUS,
	//MSG_FLUSH_LAMP_CCT_STATUS,
	//MSG_FLUSH_LAMP_RGB_STATUS,
	//MSG_FLUSH_BK_STATUS,
	//MSG_FLUSH_ELE_METER_STATUS,
	//MSG_FLUSH_WATER_METER_STATUS,
	//MSG_FLUSH_GAS_METER_STATUS,
	//MSG_MAINTAIN_HOMELAMP1,
	//MSG_RESET_APP,
	//MSG_RESET_SYSTEM,
	//MSG_UPDATE_WHITELIST_BY_IOTKT,
	//MSG_REPORT_LAMP_DETAIL_DATA,


	MSG_ROADLAMP_WHITELIST_SET = 100,
	MSG_BREAKER_WHITELIST_SET,
	MSG_DOWNLOAD_OK,
	MSG_COMM_CMD,
	MSG_DI_CHANGE,
	MSG_REPORT_BREAKER_DETAIL_DATA,
	MSG_REPORT_GW_STATUS,
	MSG_BK_BROARDCAST_CTRL_ON,
	MSG_RELOAD_485_DRV,
	MSG_BK_BROARDCAST_CTRL_OFF,
	MSG_REPORT_ATTRS,    
	MSG_UPDATE_PARAM,
};


int push_sysmsg_data(int msg_type, const void *psrc, unsigned int len);


#endif

